package com.linan.user.controller;

import com.linan.user.service.IverifyCodeService;
import com.linan.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("verifycode")
public class VerifycodeController {

    @Autowired
    private IverifyCodeService verifyCodeService;
    @RequestMapping("get-code")
    public AjaxResult smsRegisterCode(@RequestBody Map<String,String> params) {
        System.out.println(params);
        return verifyCodeService.smsRegisterCode(params);
    }
}
